#include <iostream>
#include "Character.h"
#include "surveyor.h"
#include "builder.h"
#include "consumer.h"
#include "harvester.h"
using namespace std;

int main(){

Surveyor Bob(point2d(8,12),1);
Builder Ted(point2d(6,2),1);
Consumer Nancy(point2d(14,4),2);
Harvester Jimbo(point2d(19,8),3);

Nancy.setOreDemand(10);
Jimbo.setOre(30);

cout << "Jimbo is carrying " << Jimbo.getOre() << " units of ore." <<endl;
cout << "Ted's location is: " << Ted.getLocation().x << "," << Ted.getLocation().y <<endl;
cout << "Bob's location is: " << Bob.getLocation().x << "," << Bob.getLocation().y <<endl;
cout << "Nancy wants " << Nancy.getOreDemand() << " units of ore." << endl;
cout << "Nancy is currently moving at " << Nancy.movement() << " units per second." <<endl;

Jimbo.giveOre(15,Nancy);

cout << "Nancy now has " << Nancy.getOre() << " units of ore." << endl;
cout << "Jimbo now has " << Jimbo.getOre() << " units of ore." << endl;

Builder Billy(point2d(8,4),4);
cout << "Billy's location is " << Billy.getLocation().x << "," << Billy.getLocation().y<<endl;

cout << "Jimbo is owned by player " << Jimbo.getOwner() << endl;
cout << "Ted is owned by player " << Ted.getOwner() << endl;
cout << "Bob is owned by player " << Bob.getOwner() << endl;
cout << "Nancy is owned by player " << Nancy.getOwner() << endl;


return 0;
}
